package com.group.model;

import java.util.Date;

/**
 * 页面操作日志
 * 
 * @author zhaolei
 * 
 */
public class ActionLog {

	private Long id;

	/**
	 * 事件类型
	 */
	private String eventType;

	/**
	 * 内容
	 */
	private String content;

	/**
	 * 事件名称
	 */
	private String eventName;

	/**
	 * 完整页面URL
	 */
	private String pageUrl;

	/**
	 * 页面名称
	 */
	private String pageName;

	/**
	 * 对千言的openid
	 */
	private String openid;

	/**
	 * 元素名称，命名规则由前台指定，需要能够辨识按键对应的具体元素
	 */
	private String fromElement;

	private String sessionId;

	/**
	 * 行为名称，命名规则由前台指定
	 */
	private String actionName;

	/**
	 * 页面滚动百分比 取值范围( 0 ~ 1 )
	 */
	private Double scroll;

	private Date createTime;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getEventType() {
		return eventType;
	}

	public void setEventType(String eventType) {
		this.eventType = eventType;
	}

	public String getEventName() {
		return eventName;
	}

	public void setEventName(String eventName) {
		this.eventName = eventName;
	}

	public String getPageUrl() {
		return pageUrl;
	}

	public void setPageUrl(String pageUrl) {
		this.pageUrl = pageUrl;
	}

	public String getPageName() {
		return pageName;
	}

	public void setPageName(String pageName) {
		this.pageName = pageName;
	}

	public String getFromElement() {
		return fromElement;
	}

	public void setFromElement(String fromElement) {
		this.fromElement = fromElement;
	}

	public String getActionName() {
		return actionName;
	}

	public void setActionName(String actionName) {
		this.actionName = actionName;
	}

	public Double getScroll() {
		return scroll;
	}

	public void setScroll(Double scroll) {
		this.scroll = scroll;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getSessionId() {
		return sessionId;
	}

	public void setSessionId(String sessionId) {
		this.sessionId = sessionId;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getOpenid() {
		return openid;
	}

	public void setOpenid(String openid) {
		this.openid = openid;
	}

	@Override
	public String toString() {
		return "ActionLog [id=" + id + ", eventType=" + eventType + ", content=" + content + ", eventName=" + eventName + ", pageUrl=" + pageUrl + ", pageName=" + pageName + ", openid=" + openid
				+ ", fromElement=" + fromElement + ", sessionId=" + sessionId + ", actionName=" + actionName + ", scroll=" + scroll + ", createTime=" + createTime + "]";
	}

}
